package com.aooci.ordercat.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
@Entity
@Table(name = "ITEM_CATEGORY")
@NamedQueries({
    @NamedQuery(name="ITEM_CATEGORY.selectAllByOrder",
                query="SELECT ic FROM ItemCategory ic ORDER BY ic.sortGroup, ic.id"),
    @NamedQuery(name="ITEM_CATEGORY.selectByDisplayZone",
                query="SELECT ic FROM ItemCategory ic WHERE ic.displayZone = :displayZone ORDER BY ic.sortGroup, ic.id"),
})
public class ItemCategory extends IdentityEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Column(name = "LABEL")
	private String label;
	
	@Column(name = "IMAGE")
	private String image;
	
	@Column(name = "VAT")
	private float vat;
	
	@Column(name = "COMBO")
	private boolean combo;
	
	@Column(name = "SORT_GROUP")
	private Integer sortGroup;
	
	@Column(name = "DISPLAY_ZONE")
	private Integer displayZone;

	/**
	 * @return the label
	 */
	public String getLabel() {
		return label;
	}
	/**
	 * @param label the label to set
	 */
	public void setLabel(String label) {
		this.label = label;
	}
	/**
	 * @return the vat
	 */
	public float getVat() {
		return vat;
	}
	/**
	 * @param vat the vat to set
	 */
	public void setVat(float vat) {
		this.vat = vat;
	}
	/**
	 * @return the sortGroup
	 */
	public Integer getSortGroup() {
		return sortGroup;
	}
	/**
	 * @param sortGroup the sortGroup to set
	 */
	public void setSortGroup(Integer sortGroup) {
		this.sortGroup = sortGroup;
	}
	/**
	 * @return the combo
	 */
	public boolean isCombo() {
		return combo;
	}
	/**
	 * @param combo the combo to set
	 */
	public void setCombo(boolean combo) {
		this.combo = combo;
	}
	/**
	 * @return the image
	 */
	public String getImage() {
		return image;
	}
	/**
	 * @param image the image to set
	 */
	public void setImage(String image) {
		this.image = image;
	}
	/**
	 * @return the displayZone
	 */
	public Integer getDisplayZone() {
		return displayZone;
	}
	/**
	 * @param displayZone the displayZone to set
	 */
	public void setDisplayZone(Integer displayZone) {
		this.displayZone = displayZone;
	}
	
}
